All Functions of Week 8

tibble

{tibble}

A modern data frame from the tidyverse

log

{base}

log (default base = e)

library

{base}

Load an R package

par

{graphics}

Set parameters of the plotting device

plot

{graphics}

Generic function from base R to produce a plot

predict

{stats}

Generate predicted values from model objects

data.frame

{base}

Create a data.frame from vectors

c

{base}

Combine values/vectors into a vector

list

{base}

Create a list object

pnorm

{base}

Returns the cumulative distribution function (CDF) of the normal distribution

filter

{dplyr}

Filter out rows of a data frame according to logical vector

ungroup

{dplyr}

Resolve grouping created with “group_by”

round

{base}

Rounds numbers

unlist

{base}

Flattens a list into a vector by extracting all its elements

seq

{base}

Create a sequence

scale_color_manual

{ggplot2}

Manually sets the colours used in a ggplot color scale to user-specified values

summary

{base}

Obtain summary statistics or detailed regression output

lag

{dplyr}

Shift values in a vector or time series

xlim

{ggplot2}

A shortcut to set the limits of the x-axis in a ggplot

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

theme_latex

{tinytable}

A theme for modelsummary/tinytable tables

arrange

{dplyr}

Sort values of data frame according to a variable/combination of variables

as.numeric

{base}

Coerce a vector to numeric

binomial

{base}

Family argument in glm()

rbind

{base}

Combine R objects by rows

attr

{base}

Access or modify the attributes of an object

setwd

{base}

Set Working Directory

modelsummary

{modelsummary}

Creates regression and data tables

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

mutate

{dplyr}

Create new variables

auc

{pRoc}

Returns the area under the curve

glm

{base}

Fits generalized linear models

group_tt

{tinytable}

Grouping in tinytable

cat

{base}

Concatenate and print objects to the console without quotes or indices

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

roc

{pRoc}

Create a Receiver Operating Characteristic (ROC) curve

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

regTermTest

{regress}

Perform statistical tests for individual regression coefficients

The end!